/**
 ├── routes
 └── index.js
 */
const Router = require('koa-router')
const BsHourYbController = require('../controllers/bs_hour_yb')
const BsSsController = require('../controllers/bs_ss')
const BsYbController = require('../controllers/bs_yb')
const FindAllController = require('../controllers/find_all')

const router = new Router({
  prefix: '/api/bloomsky'
})

/**
 * 获取温度
 */
router.get('/findAll', FindAllController.findAll);
/**
 * 获取湿度
 */
router.get('/findHumidityAll', FindAllController.findHumidityAll);
/**
 * 按时间获取温度
 */
router.get('/findAllByTime', FindAllController.findAllByTime);
/**
 * 按时间获取湿度
 */
router.get('/findHumidityAllByTime', FindAllController.findHumidityAllByTime);

/**
 * 获取bloomsky小时预报统计信息
 */
router.get('/findByHours', BsHourYbController.findAll);
/**
 * 获取bloomsky小时实时统计信息
 */
router.get('/findSs', BsSsController.findAll);
/**
 * 获取bloomsky预报统计信息
 */
router.get('/findYb', BsYbController.findAll);

module.exports = router